package com.my;

import com.baomidou.mybatisplus.generator.AutoGenerator;
import com.my.config.GeneratorConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author summit
 * @since 2020/6/27 8:44
 */
public class CodeGeneratorApplication {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext application = new AnnotationConfigApplicationContext(
            GeneratorConfig.class);
        AutoGenerator autoGenerator = application.getBean("autoGenerator", AutoGenerator.class);
        autoGenerator.execute();
    }
}
